//
//  UIViewController+ZTHUD.h
//  AFNetworking
//
//  Created by 武得亮 on 2021/3/14.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"

typedef void (^ConfirmClickBlock)(void);
typedef void(^CancelClickBlock)(void);


@interface UIViewController (ZTHUD)


- (void)showHUDOnlyText:(NSString *)labelText afterDelay:(NSTimeInterval)afterDelay;

- (void)showHUDOnlyText:(NSString *)labelText;

/**
 *  带确定和取消按钮的提示框
 */
- (void)showAlertViewWithTitle:(NSString *)title subTitle:(NSString *)subTitle confirmBtnTitle:(NSString *)confirmTitle cancelBtnTitle:(NSString *)cancelTitle confirmBlock:(ConfirmClickBlock)confirmBlock cancelBlock:(CancelClickBlock)cancelBlock;


/**
 *  带一个按钮的提示框
 */
- (void)showAlertViewWithTitle:(NSString *)title subTitle:(NSString *)subTitle confirmBtnTitle:(NSString *)confirmTitle confirmBlock:(ConfirmClickBlock)confirmBlock;

/**
 *  提示框
 */
- (void)showActionSheetWithTitle:(NSString *)title subTitle:(NSString *)subTitle confirmTitle:(NSString *)confirmTitle cancelTitle:(NSString *)cancelTitle confirmBlock:(ConfirmClickBlock)confirmBlock cancelBlock:(CancelClickBlock)cancelBlock;

/**
 *  提示框(有取消)
 */
- (void)showActionSheetWithTitle:(NSString *)title subTitle:(NSString *)subTitle firstTitle:(NSString *)firstTitle secondTitle:(NSString *)secondTitle firstBlock:(ConfirmClickBlock)firstBlock secondBlock:(CancelClickBlock)secondBlock;

/**
 *  提示框(一个;)
 */
- (void)showActionSheetWithTitle:(NSString *)title subTitle:(NSString *)subTitle confirmTitle:(NSString *)confirmTitle confirmBlock:(ConfirmClickBlock)confirmBlock;

/** 带取消按钮的Sheet弹框（一个） */
- (void)showActionSheetWithSubTitle:(NSString *)subTitle cancelTitle:(NSString *)cancelTitle confirmBlock:(ConfirmClickBlock)confirmBlock cancelBlock:(CancelClickBlock)cancelBlock;

/** 带取消按钮的Sheet弹框（两个） */
- (void)showActionSheetWithSubTitle:(NSString *)subTitle secondTitle:(NSString *)secondTitle cancelTitle:(NSString *)cancelTitle confirmBlock:(ConfirmClickBlock)confirmBlock  secondBlock:(CancelClickBlock)secondBlock cancelBlock:(CancelClickBlock)cancelBlock;

/** 带取消按钮的Sheet弹框（三个） */
- (void)showActionSheetWithSubTitle:(NSString *)subTitle secondTitle:(NSString *)secondTitle thirdTitle:(NSString *)thirdTitle cancelTitle:(NSString *)cancelTitle confirmBlock:(ConfirmClickBlock)confirmBlock  secondBlock:(CancelClickBlock)secondBlock thirdBlock:(CancelClickBlock)thirdBlock cancelBlock:(CancelClickBlock)cancelBlock;

/** 带取消按钮的Sheet弹框（四个） */
- (void)showActionSheetWithSubTitle:(NSString *)subTitle secondTitle:(NSString *)secondTitle thirdTitle:(NSString *)thirdTitle fourthTitle:(NSString *)fourthTitle cancelTitle:(NSString *)cancelTitle confirmBlock:(ConfirmClickBlock)confirmBlock  secondBlock:(CancelClickBlock)secondBlock thirdBlock:(CancelClickBlock)thirdBlock fourthBlock:(CancelClickBlock)fourthBlock cancelBlock:(CancelClickBlock)cancelBlock;

- (void)showHudInView:(UIView *)view hint:(NSString *)hint;
- (void)showHudInView3:(UIView *)view hint:(NSString *)hint;

- (void)showHUDOnly3Text:(NSString *)labelText;

- (void)showHudInView10:(UIView *)view hint:(NSString *)hint;

- (void)hideHud;

- (void)showHint:(NSString *)hint;

- (void)showHint:(NSString *)hint yOffset:(float)yOffset;


///  OA  ///

-(void)showSuccess:(NSString *)success;
-(void)showError:(NSString *)error;
-(void)showMessage:(NSString *)message;
-(void)showWaiting;
-(void)showLoading;
-(void)showLoadingWithMessage:(NSString *)message;
-(void)showSaving;
-(void)showNoDataImage;

/// 移动OA
-(void)hideHUD;

-(void)zt_showLoading;
-(void)zt_hideHUD;


@end
